package de.gameduell.framework.threads 
{
	import de.gameduell.framework.threads.IThread;
	import flash.events.Event;
	
	/**
	 * a component sends a start thread request to ThreadPoolManager
	 * @author Ferry Trunschke
	 */
	public class StartThreadRequest extends Event {
		
		public static const TYPE:String = "StartThreadRequest";
		
		public var queueId:String;
		public var thread:IThread;
		public var joinBlockingThread:Boolean;
		
		/**
		 * @param	queueId
		 * @param	thread
		 * @param	insertAtHead force insertion into queue after current element? by default elements will be inserted at tail
		 */
		public function StartThreadRequest(queueId:String, thread:IThread, joinBlockingThread:Boolean = false)  {
			super(TYPE, false, false);
			this.queueId = queueId;
			this.thread = thread;
			this.joinBlockingThread = joinBlockingThread;
		}
		
	}

}